import request from '@/utils/request'


//分页查询
export const queryPageApi = (data) => request.get('/roles', {params: data}) 

export const addApi = (data) => request.post('/roles', data)

export const updateApi = (data) => request.put('/roles', data)

export const queryByIdApi = (id) => request.get(`/roles/${id}`)

export const deleteApi = (id) => request.delete(`/roles/${id}`)